package com.gs.userservice.controller;

import com.gs.userservice.entity.SysUser;
import com.gs.userservice.service.UserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: apollomodulestest
 * @Package: com.gs.userservice.controller
 * @Description: java类作用描述
 * @Author: guoshuai
 * @CreateDate: 2019/7/26 19:47
 * @UpdateUser: guoshuai
 * @UpdateDate: 2019/7/26 19:47
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/
@RestController
public class UserController {

    private UserService userService;

    @RequestMapping("/saveUser")
    @ResponseBody
    public String saveUser(@RequestBody SysUser user){

        userService.saveUser(user);
        return "保存成功！";
    }



}
